package com.ktjy.ktmall.domain;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktjy.common.annotation.Excel;
import com.ktjy.common.core.domain.BaseEntity;

/**
 * 规格属性值对象 t_attr_values
 *
 * @author ktjy
 * @date 2025-01-15
 */
@Data
@TableName("t_attr_values")
public class AttrValues extends BaseEntity {
private static final long serialVersionUID=1L;

        /** 主键id */
                @Excel(name = "主键id")
            @TableId(value = "id" , type = IdType.AUTO)
        private Long id;

        /** 属性 */
            @TableField(value = "attr_id")
        private Long attrId;

        /** 值名称 */
                @Excel(name = "值名称")
            @TableField(value = "name")
        private String  name;

        /** 值图片 */
                @Excel(name = "值图片")
            @TableField(value = "picture")
        private String picture;

        /** 值描述 */
                @Excel(name = "值描述")
            @TableField(value = "description")
        private String description;

        /** 排序值 */
                @Excel(name = "排序值")
            @TableField(value = "order_num")
        private Long orderNum;

        /** 状态(0:正常 1:禁用) */
            @TableField(value = "status")
        private Long status;


@Override
public String toString(){
    return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
        .append("id" ,getId())
        .append("attrId" ,getAttrId())
        .append("name" ,getName())
        .append("picture" ,getPicture())
        .append("description" ,getDescription())
        .append("orderNum" ,getOrderNum())
        .append("status" ,getStatus())
        .append("createTime" ,getCreateTime())
        .append("updateTime" ,getUpdateTime())
        .append("createBy" ,getCreateBy())
        .append("updateBy" ,getUpdateBy())
        .append("remark" ,getRemark())
            .toString();
}
        }